package dao;

import com.fasterxml.jackson.databind.deser.impl.CreatorCandidate;

import entity.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CommodityDao {
    public List<Commodity> list();

    public int count(Commodity commodity) ;

    public List<Commodity> queryByName(Map<String,Object> map);



    /*查询商品表*/
    public List<Commodity> QqueryList(Map<String,Object> map);

    public int chanumber();
    //单个查询
    public Commodity queryone(@Param("name") String name,@Param("cangku") int cangku);

    //调拨修改数量
    public int dbupdate(@Param("name") String name,@Param("cangku") int cangku,@Param("shuliang") int shuliang);

    //添加
    public int dbadd(Commodity comm);

    //分页
    public int QgetCount(Commodity commodity);



    public Commodity cha(Commodity commodity);

    public int add(Commodity commodity);

    public int upd(Commodity commodity);

    public int upd2(Commodity commodity);

    public Commodity chanumber1(String number);



}
